package com.example.demo.entity;

import com.example.demo.annotation.FieldTestAnnotation;
import lombok.Data;

import java.util.Date;

/**
 * @Description
 * @Author chenhuiyu
 * @Date 2023/11/8
 */
@Data
public class User extends BaseEntity{
//    @FieldTestAnnotation
    private Integer id;
    @FieldTestAnnotation(testName = "user")
    private String username;
    @FieldTestAnnotation(weight = 0.5f)
    private Integer age;
    @FieldTestAnnotation(weight = 0.3f)
    private String password;

    private Integer groupId;

    public User(Integer id, String username, Integer age, String password) {
        this.id = id;
        this.username = username;
        this.age = age;
        this.password = password;
    }

    public User() {
    }
}
